package com.smart.service;

import com.smart.pojo.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lyj
 * @since 2023-04-19
 */
public interface IPermissionService extends IService<Permission> {

    List<Permission> queryByRoleId(Long roleId);

    List<Permission> queryByUserId(Long userId);

    boolean saveOrUpdatePermission(Permission permission);
}
